import request from '@/utils/request'
export function postInfo(queryParams) {
    return request({
        url: '/admin/getPost',
        method: 'post',
        params: queryParams
    })
}
export function postAdd(queryParams) {
    return request({
        url: '/admin/postAdd',
        method: 'post',
        params: queryParams
    })
}
export function postDelete(id) {
    return request({
        url: '/admin/postDelete?id='+id,
        method: 'post',
    })
}
export function updatePost(queryParams) {
    return request({
        url: '/admin/postUpdate',
        method: 'post',
        params: queryParams
    })
}
export function addTrains(queryParams) {
    return request({
        url: '/admin/getTrainingContentAdd',
        method: 'post',
        params: queryParams
    })
}